/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2022 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

#define moter_A4_ON  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_SET)
#define moter_A4_OFF  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_RESET)

#define moter_A5_OFF HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_RESET)
#define moter_A5_ON  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_SET)

#define moter_B3_ON   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3, GPIO_PIN_SET)
#define moter_B3_OFF   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3, GPIO_PIN_RESET)

#define moter_B4_OFF  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_RESET)
#define moter_B4_ON  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_SET)
/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define LED_Yellow_Pin GPIO_PIN_5
#define LED_Yellow_GPIO_Port GPIOE
#define RedOut_Left_Pin GPIO_PIN_0
#define RedOut_Left_GPIO_Port GPIOF
#define RedOut_Right_Pin GPIO_PIN_1
#define RedOut_Right_GPIO_Port GPIOF
#define Echo2_Pin GPIO_PIN_0
#define Echo2_GPIO_Port GPIOC
#define Trig2_Pin GPIO_PIN_1
#define Trig2_GPIO_Port GPIOC
#define Echo1_Pin GPIO_PIN_2
#define Echo1_GPIO_Port GPIOC
#define Trig1_Pin GPIO_PIN_3
#define Trig1_GPIO_Port GPIOC
#define CSB_Echo_Pin GPIO_PIN_4
#define CSB_Echo_GPIO_Port GPIOC
#define CSB_Trig_Pin GPIO_PIN_5
#define CSB_Trig_GPIO_Port GPIOC
#define LED_Red_Pin GPIO_PIN_5
#define LED_Red_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
